package com.yznmall.mall.util;

public class PageCalculator {
    public static int caculatorRowIndex(int rowIndex,int pageSize){
        return (pageSize > 0)?(rowIndex - 1) * pageSize : 0;
    }
}
